import request from '@/utils/request'

// 查询条码字段列表
export function listField(query) {
  return request({
    url: '/barcode/field/list',
    method: 'get',
    params: query
  })
}

// 查询条码字段详细
export function getField(id) {
  return request({
    url: '/barcode/field/' + id,
    method: 'get'
  })
}

// 新增条码字段
export function addField(data) {
  return request({
    url: '/barcode/field',
    method: 'post',
    data: data
  })
}

// 修改条码字段
export function updateField(data) {
  return request({
    url: '/barcode/field',
    method: 'put',
    data: data
  })
}

// 删除条码字段
export function delField(id) {
  return request({
    url: '/barcode/field/' + id,
    method: 'delete'
  })
}
